package Behavioral.Strategy.demo1;
/*策略模式也有缺点，比如客户端必须知道所有的策略类，并且知道这些类区别，以便选择恰当的策略类。*/
public class StrategyDemo1 {
	public static void main(String[] args) {
		Context contextA = new Context(new StrategyA());
		contextA.run();

		Context contextB = new Context(new StrategyB());
		contextB.run();
	}
}
